function f1(){}
function f2():void{}
function f3():undefined{return}
console.log(f1(),f2(),f3());

let none:void;
console.log(none);
none = undefined;
console.log(none);
let undef:undefined;
console.log(undef);
undef = undefined;
console.log(undef);
let nu:null = null;
console.log(nu);

function f4(message : string,errorCode : number){
    throw {
        message,
        errorCode
    };
}
// f4('not found',404)

function f5(info:string):never{
    throw info;
}
// f5('error')

function deadLoop():never{
    while(true){
        console.log('WoW!');
    }
}
